/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import HibernateConfig.HibernateUtil;
import org.hibernate.Session;
import org.hibernate.Transaction;

/**
 *
 * @author Enrique
 */
public class ConexionBDHibernate {

    // ATRIBUTOS
    
    private static Session sesion = HibernateUtil.getSessionFactory().openSession();
    
    //CONSTRUCTORES
   
    public ConexionBDHibernate() {
    }

    // GETTERS Y SETTERS
    
    public static Session getSesion() {
        return sesion;
    }

    public static void setSesion(Session sesion) {
        ConexionBDHibernate.sesion = sesion;
    }
  
    
    
    
}
